package com.project.fiveCerealsSavoury.transfer;

public class AddressSet {
	private Integer id;
	
	private String newAddress;
	
	private String newUserPhone;
	
	private String newNickName;
	
	private String newDetailedAddress;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNewAddress() {
		return newAddress;
	}

	public void setNewAddress(String newAddress) {
		this.newAddress = newAddress;
	}

	public String getNewUserPhone() {
		return newUserPhone;
	}

	public void setNewUserPhone(String newUserPhone) {
		this.newUserPhone = newUserPhone;
	}

	public String getNewNickName() {
		return newNickName;
	}

	public void setNewNickName(String newNickName) {
		this.newNickName = newNickName;
	}

	public String getNewDetailedAddress() {
		return newDetailedAddress;
	}

	public void setNewDetailedAddress(String newDetailedAddress) {
		this.newDetailedAddress = newDetailedAddress;
	}

	@Override
	public String toString() {
		return "AddressSet [id=" + id + ", newAddress=" + newAddress + ", newUserPhone=" + newUserPhone
				+ ", newNickName=" + newNickName + ", newDetailedAddress=" + newDetailedAddress + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((id == null) ? 0 : id.hashCode());
		result = prime * result + ((newAddress == null) ? 0 : newAddress.hashCode());
		result = prime * result + ((newDetailedAddress == null) ? 0 : newDetailedAddress.hashCode());
		result = prime * result + ((newNickName == null) ? 0 : newNickName.hashCode());
		result = prime * result + ((newUserPhone == null) ? 0 : newUserPhone.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		AddressSet other = (AddressSet) obj;
		if (id == null) {
			if (other.id != null)
				return false;
		} else if (!id.equals(other.id))
			return false;
		if (newAddress == null) {
			if (other.newAddress != null)
				return false;
		} else if (!newAddress.equals(other.newAddress))
			return false;
		if (newDetailedAddress == null) {
			if (other.newDetailedAddress != null)
				return false;
		} else if (!newDetailedAddress.equals(other.newDetailedAddress))
			return false;
		if (newNickName == null) {
			if (other.newNickName != null)
				return false;
		} else if (!newNickName.equals(other.newNickName))
			return false;
		if (newUserPhone == null) {
			if (other.newUserPhone != null)
				return false;
		} else if (!newUserPhone.equals(other.newUserPhone))
			return false;
		return true;
	}
}
